package org.dromara.book.domain.bo;

import org.dromara.book.domain.SzlyBaseBookVersion;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 版本号业务对象 szly_base_book_version
 *
 * @author LionLi
 * @date 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SzlyBaseBookVersion.class, reverseConvertGenerate = false)
public class SzlyBaseBookVersionBo extends BaseEntity {

    /**
     * 序号
     */
    @NotNull(message = "序号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 版本名称
     */
    @NotBlank(message = "版本名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
